package main

import (
	"github.com/julienschmidt/httprouter"
	"net/http"
)

//路由
func RegisterRouter() *httprouter.Router {
	router := httprouter.New()
	router.POST("/user", CreateUser)
	router.GET("/user/:username", Login)
	return router
}

func main() {
	router := RegisterRouter()
	http.ListenAndServe(":8888", router)
}
